From: Milan Crha Date: Mon, 20 Apr 2026 10:22:48 +0000 (+0200) Subject: endSessionDialog: Prepare updates also in the "Restart & Install" dialog X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~10^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b4d3d851f125cfeb0ad831d82a2a79466ead0667;p=gnome-shell.git endSessionDialog: Prepare updates also in the "Restart & Install" dialog The current code expects a checkbox to confirm update installation to be present, but when the updates are already scheduled, it did not confirm the actual user action for the update, aka to reboot the machine, instead of using the previously set update action, which could be Power Off. Part-of: --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 84da30558..e803785d7 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -491,6 +491,8 @@ class EndSessionDialog extends ModalDialog.ModalDialog { } else { await this._triggerOfflineUpdateCancel(); } + } else if (this._type === DialogType.UPDATE_RESTART && (this._updatePrepared || this._updateScheduled)) { + await this._setPostUpdateAction(OFFLINE_UPDATE_ACTION_REBOOT); } this._fadeOutDialog();